<?php

namespace app\xwam\controller;

/**
 * IndexController控制器
 *
 * @version 1.0.0 2015-03-21 SoChishun(14507247@qq.com) Added.
 */
class Index extends AppbaseController {

    public function index() {
        // 主菜单资料
        $menus=\app\xwam\model\MenuModel::getMenus();
        return view('',['menus'=>$menus]);
    }

    public function home() {
        return view();
    }

    // 2016-5-9 sochishun added.
    public function desktop() {
        // 主菜单资料
        $m_rule = new \app\xwam\model\RuleModel();
        $this->assign('menuset', $m_rule->get_menus());
        return view();
    }

    function about() {
        return view();
    }
}
